package com.example.springbootthreadexamples;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableScheduling // 启动调度, 使用 taskScheduler 线程池，定时调度异步任务 @Async 默认使用 taskExecutor 线程池
@EnableAsync // 启动异步，@Async 默认使用 taskExecutor 线程池
@SpringBootApplication
public class SpringbootThreadExamplesApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootThreadExamplesApplication.class, args);
    }

}
